﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Windows.Media;
using FM.接口;
using Microsoft.Practices.Prism.Mvvm;

namespace FM.ViewModels
{
    public class 电平表视图ViewModel : BindableBase, I电平表
    {
        private double _左电平 = -50;

        private double _右电平 = -50;

        private double _最小电平 = -50;

        private double _最大电平 = 10;

        private Brush _指针画笔;

        public 电平表视图ViewModel()
        {
            _指针画笔 = Brushes.LimeGreen;
        }


        public ICommand 双击 { get; set; }

        public Brush 指针画笔
        {

            get { return _指针画笔; }
            set { SetProperty(ref _指针画笔, value); }
        }

        public double  最小电平
        {
            get { return _最小电平; }
            set { SetProperty(ref _最小电平, value); }
        }


        public double 最大电平
        {

            get { return _最大电平; }
            set { SetProperty(ref _最大电平, value); }
        }

        public double 左电平
        {

            get { return _左电平; }
            set { SetProperty(ref _左电平, value); }
        }

        public double 右电平
        {

            get { return _右电平; }
            set { SetProperty(ref _右电平, value); }
        }
    }
}
